package light.mvc.model.item;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import light.mvc.model.base.IdEntity;
import light.mvc.model.register.TregisterCharge;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Entity
@Table(name = "x_ray")
@DynamicInsert(true)
@DynamicUpdate(true)
public class TxRay extends IdEntity implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	
	private String partOfBody;
	private String description;
	private Double price;
	
	private Set<TregisterCharge> registerCharges = new HashSet<TregisterCharge>(0);
	
	@OneToMany(mappedBy = "xRay")
	public Set<TregisterCharge> getRegisterCharges() {
		return registerCharges;
	}
	public void setRegisterCharges(Set<TregisterCharge> registerCharges) {
		this.registerCharges = registerCharges;
	}
	
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}

	public String getPartOfBody() {
		return partOfBody;
	}

	public void setPartOfBody(String partOfBody) {
		this.partOfBody = partOfBody;
	}
	

	
	
}
